package com.zygh.lz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zygh.lz.entity.role.SysRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Section implements Serializable {
    @ApiModelProperty(value = "部门id", example = "1")
    @TableId(value = "sys_section_id", type = IdType.AUTO)
    private Integer sysSectionId;

    @ApiModelProperty(value = "部门上层id", example = "1")
    private Integer sectionPid;

    @ApiModelProperty(value = "部门名称")
    private String sectionName;

    @ApiModelProperty(value = "部门位置")
    private String sectionPosition;

    @ApiModelProperty(value = "部门电话")
    private String sectionTel;

    @ApiModelProperty(value = "部门负责人")
    private String sectionPerson;

    @ApiModelProperty(value = "对接长峰科技生成的任务组id")
    private String rwzid;

    @ApiModelProperty(value = "格尔")
    private String tempid;

    @ApiModelProperty(value = "咨询电话")
    private String hotline;


    @ApiModelProperty(value = "是否勾选(0:否   1:是)")
    private Integer isCheck;

    @ApiModelProperty(value = "排序")
    private Integer sort;


    @TableField(exist = false)
    private List<Section> sectionList = new ArrayList<>();

    @TableField(exist = false)
    @ApiModelProperty(value = "签到状态 0未签到 1已签到")
    private int signState;
    @TableField(exist = false)
    List<SysRole> role = new ArrayList<>();

}